/* compile with g++  -fopenmp %file
mpicxx 
*/

#include <stdio.h>
#include <omp.h>

using namespace std;

int main()
{
  int nthreads, tid;

  #pragma omp parallel private(nthreads, tid)
  {
    nthreads = omp_get_num_threads();
    tid = omp_get_thread_num();
    printf("From thread %d out of %d, hello, world\n", tid, nthreads);
  }
  return 0;
}